home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / dev / gcc / crossgcc_fbsd.tgz.readme < prev    next >
Text File  |  2001-08-25  |  1KB  |  46 lines

  1. Short:    Crossgcc FreeBSD 4.x to AmigaOS
  2. Author:   nmo@iiriam.fr (Henri Michelon)
  3. Uploader: nmo@iiriam.fr (Henri Michelon)
  4. Version:  2.95.3-3 (-fbaserel and -fbaserel32 refixed)
  5. Type:     dev/gcc
  6. Requires: FreeBSD 4.3 + 586 compatible CPU
  7. Date:     21.08.01
  8. Url:      http://www.nmo-sdk.org/amigaos/crossgcc
  9. Filesize: 5279035
  10.  
  11. I have compiled gcc as a cross compiler so one can compile amiga programs on a computer with
  12. FreeBSD. It is special usefull when one wants to port unix programs to amigaos.
  13.  
  14. installation:
  15. untar the archive in the /root/ directory:
  16.  
  17. for bash users:
  18. Add to (or create) ~/.bashrc
  19. export COPTFLAGS='-O3'
  20. export LDFLAGS='-s'
  21. PATH=/root/fsf/gg/bin:$PATH ; export PATH
  22.  
  23. for csh users:
  24. Add to (or create) ~/.cshrc
  25. setenv COPTFLAGS -O3
  26. setenv LDFLAGS -s
  27. path=(/root/fsf/gg/bin $path)
  28.  
  29.  
  30. Copy your amigaos-includes to /root/fsf/gg/m68k-amigaos/sys-include
  31. They are copyright by Amiga and on the DeveloperCD and the FrozenFishCD.
  32.  
  33.  
  34. To cross-compile C programs type:
  35. m68k-amigaos-gcc [-O3] [-noixemul] [-resident] [-fbaserel[32]] -o HelloWorld HelloWorld.c -s
  36.  
  37. To cross-compile a program with a configure script (bash):
  38. CC='m68k-amigaos-gcc' CFLAGS='[-O3] [-noixemul]' LFLAGS='[-noixemul] [-resident] [-fbaserel[32]]' ./configure
  39.  
  40.  
  41. compiled with:
  42. gcc v2.95.3   CFLAGS=-O3 -i586
  43. binutils v2.9.1  CFLAGS=-O9 -i586
  44.  
  45. Note: only pth, pthread and termcap libraries are included.
  46.